Select
The Select command is a request to select one or more objects. If you specify objects in several containers, only the objects in the last specified container
will remain selected. The container must be open for the specified object to
be selected.SYNTAX
select referenceToObjectPARAMETER
- referenceToObject
- A reference to the object or objects to be selected.
Class: Reference or list of referencesRESULT
Reference to the selected object or a list of references.EXAMPLE
This script selects two files in a single folder:
tell application "Finder" select {file "To Tom" in folder "Letters" of startup disk, ¬ file "To Lorraine" in folder "Letters" of startup disk} end tellThe folder must be open for the script to work correctly.